package yifeng.javabasic;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


/**
 * final 一定要在class前面?
 * @author pengyifeng
 *
 * @param <T>
 */
public final class FanxingExp<T> {
	T t1;
	T t2;
	
	public FanxingExp(T t1, T t2){
		this.t1 = t1;
		this.t2 = t2;
	}
	
	public static  <E> List<E> test2(E... ts){
		
		List<E> list = new ArrayList<E>();
		
//		List<T> list2 = new ArrayList<T>();
		
		
		return list;
	}
	
	
	
	public void print(){
		System.out.println(t1 + " " + t2);
		Arrays.asList(1,2,3,4,5);
	}
	
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new FanxingExp<String>("AAA", "BBB").print();
	}

}
